package cn.iocoder.yudao.module.blog.convert.component;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.blog.controller.admin.component.vo.*;
import cn.iocoder.yudao.module.blog.dal.dataobject.component.BlogComponentDO;

/**
 * 置顶案例 Convert
 *
 * @author 曹建伟
 */
@Mapper
public interface BlogComponentConvert {

    BlogComponentConvert INSTANCE = Mappers.getMapper(BlogComponentConvert.class);

    BlogComponentDO convert(BlogComponentCreateReqVO bean);

    BlogComponentDO convert(BlogComponentUpdateReqVO bean);

    BlogComponentRespVO convert(BlogComponentDO bean);

    List<BlogComponentRespVO> convertList(List<BlogComponentDO> list);

    PageResult<BlogComponentRespVO> convertPage(PageResult<BlogComponentDO> page);

    List<BlogComponentExcelVO> convertList02(List<BlogComponentDO> list);

}
